type text/template/parse.item
20 uses
text/template/parse (current package)
lex.go#L15: type item struct {
lex.go#L22: func (i item) String() string {
lex.go#L124: item item // item to return to parser
lex.go#L171: func (l *lexer) thisItem(t itemType) item {
lex.go#L172: i := item{t, l.start, l.input[l.start:l.pos], l.startLine}
lex.go#L184: func (l *lexer) emitItem(i item) stateFn {
lex.go#L217: l.item = item{itemError, l.start, fmt.Sprintf(format, args...), l.startLine}
lex.go#L226: func (l *lexer) nextItem() item {
lex.go#L227: l.item = item{itemEOF, l.pos, "EOF", l.startLine}
parse.go#L29: token [3]item // three-token lookahead for parser.
parse.go#L71: func (t *Tree) next() item {
parse.go#L87: func (t *Tree) backup2(t1 item) {
parse.go#L94: func (t *Tree) backup3(t2, t1 item) { // Reverse order: we're pushing back.
parse.go#L101: func (t *Tree) peek() item {
parse.go#L111: func (t *Tree) nextNonSpace() (token item) {
parse.go#L122: func (t *Tree) peekNonSpace() item {
parse.go#L173: func (t *Tree) expect(expected itemType, context string) item {
parse.go#L182: func (t *Tree) expectOneOf(expected1, expected2 itemType, context string) item {
parse.go#L191: func (t *Tree) unexpected(token item, context string) {
parse.go#L672: func (t *Tree) parseTemplateName(token item, context string) (name string) {